using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._TINDataset._Conversion
{
    /// <summary>
    /// <para>TIN Edge</para>
    /// <para>Creates 3D line features using the triangle edges of a triangulated irregular network (TIN) dataset.</para>
    /// <para>使用三角化不规则网络 （TIN） 数据集的三角形边创建 3D 线要素。</para>
    /// </summary>    
    [DisplayName("TIN Edge")]
    public class TinEdge : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public TinEdge()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_tin">
        /// <para>Input TIN</para>
        /// <para>The TIN dataset to process.</para>
        /// <para>要处理的 TIN 数据集。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// </param>
        public TinEdge(object _in_tin, object _out_feature_class)
        {
            this._in_tin = _in_tin;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "TIN Edge";

        public override string CallName => "3d.TinEdge";

        public override List<string> AcceptEnvironments => ["XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "autoCommit", "extent", "geographicTransformations", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_in_tin, _out_feature_class, _edge_type.GetGPValue()];

        /// <summary>
        /// <para>Input TIN</para>
        /// <para>The TIN dataset to process.</para>
        /// <para>要处理的 TIN 数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input TIN")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_tin { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Edge Type</para>
        /// <para><xdoc>
        ///   <para>The triangle edge that will be exported.</para>
        ///   <bulletList>
        ///     <bullet_item>Data Area—Edges representing the interpolation zone. This is the default.</bullet_item><para/>
        ///     <bullet_item>Soft Breaklines—Edges representing gradual breaks in slope.</bullet_item><para/>
        ///     <bullet_item>Hard Breaklines—Edges representing distinct breaks in slope.</bullet_item><para/>
        ///     <bullet_item>Enforced Edges—Edges that were not introduced by the TIN's triangulation.</bullet_item><para/>
        ///     <bullet_item>Regular Edges—Edges that were created by the TIN's triangulation.</bullet_item><para/>
        ///     <bullet_item>Excluded Edges—Edges that are excluded from the interpolation zone.</bullet_item><para/>
        ///     <bullet_item>All Edges—All edges, included those that were excluded from the interpolation zone.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>将导出的三角形边。</para>
        ///   <bulletList>
        ///     <bullet_item>数据区域 （Data Area） - 表示插值区域的边。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>软断线 （Soft Breaklines） - 表示斜率中逐渐断裂的边。</bullet_item><para/>
        ///     <bullet_item>硬断线 （Hard Breaklines） - 表示斜率中不同断点的边。</bullet_item><para/>
        ///     <bullet_item>强制边 （Enforced Edges） - 未由 TIN 三角测量引入的边。</bullet_item><para/>
        ///     <bullet_item>常规边 （Regular Edges） - 由 TIN 三角测量创建的边。</bullet_item><para/>
        ///     <bullet_item>排除的边 （Excluded Edges） - 从插值区域排除的边。</bullet_item><para/>
        ///     <bullet_item>所有边 （All Edges） - 所有边，包括从插值区域中排除的边。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Edge Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _edge_type_value _edge_type { get; set; } = _edge_type_value._DATA;

        public enum _edge_type_value
        {
            /// <summary>
            /// <para>Data Area</para>
            /// <para>Data Area—Edges representing the interpolation zone. This is the default.</para>
            /// <para>数据区域 （Data Area） - 表示插值区域的边。这是默认设置。</para>
            /// </summary>
            [Description("Data Area")]
            [GPEnumValue("DATA")]
            _DATA,

            /// <summary>
            /// <para>Soft Breaklines</para>
            /// <para>Soft Breaklines—Edges representing gradual breaks in slope.</para>
            /// <para>软断线 （Soft Breaklines） - 表示斜率中逐渐断裂的边。</para>
            /// </summary>
            [Description("Soft Breaklines")]
            [GPEnumValue("SOFT")]
            _SOFT,

            /// <summary>
            /// <para>Hard Breaklines</para>
            /// <para>Hard Breaklines—Edges representing distinct breaks in slope.</para>
            /// <para>硬断线 （Hard Breaklines） - 表示斜率中不同断点的边。</para>
            /// </summary>
            [Description("Hard Breaklines")]
            [GPEnumValue("HARD")]
            _HARD,

            /// <summary>
            /// <para>Enforced Edges</para>
            /// <para>Enforced Edges—Edges that were not introduced by the TIN's triangulation.</para>
            /// <para>强制边 （Enforced Edges） - 未由 TIN 三角测量引入的边。</para>
            /// </summary>
            [Description("Enforced Edges")]
            [GPEnumValue("ENFORCED")]
            _ENFORCED,

            /// <summary>
            /// <para>Regular Edges</para>
            /// <para>Regular Edges—Edges that were created by the TIN's triangulation.</para>
            /// <para>常规边 （Regular Edges） - 由 TIN 三角测量创建的边。</para>
            /// </summary>
            [Description("Regular Edges")]
            [GPEnumValue("REGULAR")]
            _REGULAR,

            /// <summary>
            /// <para>Excluded Edges</para>
            /// <para>Excluded Edges—Edges that are excluded from the interpolation zone.</para>
            /// <para>排除的边 （Excluded Edges） - 从插值区域排除的边。</para>
            /// </summary>
            [Description("Excluded Edges")]
            [GPEnumValue("OUTSIDE")]
            _OUTSIDE,

            /// <summary>
            /// <para>All Edges</para>
            /// <para>All Edges—All edges, included those that were excluded from the interpolation zone.</para>
            /// <para>所有边 （All Edges） - 所有边，包括从插值区域中排除的边。</para>
            /// </summary>
            [Description("All Edges")]
            [GPEnumValue("ALL")]
            _ALL,

        }

        public TinEdge SetEnv(object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, int? autoCommit = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, autoCommit: autoCommit, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}